import os
from comm import config

CFG = config.COMMCFG

if __name__ == '__main__':
    result = CFG.RESULT_DIR
    report = CFG.REPORT_DIR
    if not os.path.exists(result):
        os.mkdir(result)
    if not os.path.exists(report):
        os.mkdir(report)
    os.system("python3 -m pytest")
    # os.system("allure generate --clean " + result + "  --report-dir " + report)